<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>用户管理后台</title>
<script type="text/javascript" src="/Public/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="/Public/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/Public/js/lazyload.js"></script>
<script type="text/javascript" src="/artDialog/artDialog.source.js?skin=default" charset="utf-8"></script>
<script type="text/javascript" src="/Public/js/jquery.ae.image.resize.min.js"></script>
<!--<script type="text/javascript" src="/Public/js/jquery.tooltip.js"></script>
--><link rel="stylesheet" href="/Public/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="/theme/default/css/common.css">
<link rel="stylesheet" href="/theme/default/css/facesbaby-theme.css">
<!--   <link rel="stylesheet" type="text/css" href="/Public/bootstrap/css/bootstrap-ie6.css">-->

  <!--[if lte IE 6]>
  <link rel="stylesheet" type="text/css" href="/Public/bootstrap/css/bootstrap-ie6.css">
  <![endif]-->
  <!--[if lte IE 7]>
  <link rel="stylesheet" type="text/css" href="/Public/bootstrap/css/ie.css">
  <![endif]-->

  
     <script type="text/javascript" src="/Public/js/jquery.rotate.1-1.js"></script>
<script type="text/javascript">
	var base_url = "<?php echo str_replace(".jpg","_100x75.jpg",$result['photo_path']);?>";
	function reverse_(){
		var rotate=90;
			$('#Imgbox').rotate(rotate);
		$('#reverse_btn').attr('disabled','disabled');
		$.ajax({
		url:"/index.php",
		type:"GET",
		data:"s=/Home/Albums/doflip/id/<?php echo $_GET['id']?>/rotate/"+rotate+"/tp/"+new Date().getTime(),
		dataType:"text",
		success:function(text){
			//alert(text);
			if(text=="1"){
			//成功
				$('#reverse_btn').removeAttr('disabled');
				$('#Imgbox').attr("src",base_url);
			}
		}
		});
		
		
	}
</script>
</head>
<body>

<div class="container">
<div class="hd-wrap">
	<div class="hd">
    	<div class="span4">
        <a href="/"><img src="/Public/images/logo.png"></a>
        
        </div>
        <div class="span6 pull-right" style="text-align:right">
        <?php
        if(isset($_SESSION['Login_flag'])){
        ?>
        <a href="/index.php?s=/Home/User/Console">管理我的FB</a>
        &nbsp;|&nbsp;
        <a href="/index.php?s=/Home/User/logout"><i class="icon-off"></i>退出系统
</a>
        <?php
        }
        ?>
        </div>
    </div>
</div>
</div>

<div class="container">
<div>
<img src="<?php echo str_replace(".jpg","_100x75.jpg",$result['photo_path']);?>" id="Imgbox">
</div>
<input type="button" value="向右旋转" onClick="reverse_()" id="reverse_btn">
</div>
</body>
</html>